<?php
/**
 * @Author: liuhongbin
 * @Email: 514660094@qq.com
 * @Date: 2019-02-12 16:15:10
 * @Description:
 * @LastEditors: liuhongbin
 * @LastEditTime: xxx
 */

namespace app\controller\adminapi\platform\wechat;


use app\controller\adminapi\platform\PlatformController;
use app\common\controller\AdminController;
use app\common\model\wechat\WechatTransfer as WechatTransferModel;
use think\App;

/**
 * Class WechatRefund 微信退款
 * @package app\controller\adminapi\platform\wechat
 * User: liuhongbin
 * Date: 2021-06-19 18:15
 */
class WechatTransfer extends PlatformController
{
    /**
     * @var WechatTransferModel
     */
    private WechatTransferModel $model;

    public function __construct(App $app)
    {
        parent::__construct($app);
        $this->model = new WechatTransferModel();
    }

    public function index()
    {
        $res = $this->model->getPageList(['scope'=>'plaid']);
        return $this->success($res['count'], $res['data']->append(['user','addons']));
    }
}
